Skip to content

refactor: Don't include email addresses in export filenames - #8626

Merged
j-g00da merged 1 commit into
mainfrom
j-g00da/refactor-backup-filename
Aug 26, 2026
Merged

refactor: Don't include email addresses in export filenames#8626
j-g00da merged 1 commit into
mainfrom
j-g00da/refactor-backup-filename

Conversation

@j-g00da

@j-g00da j-g00da commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Changes filenames used in the db backups and key exports,
preferring fingerprint over the email address.

Part of: #8572

@j-g00da
j-g00da requested review from link2xt and removed request for link2xt August 24, 2026 10:58
@j-g00da
j-g00da marked this pull request as draft August 24, 2026 11:11
@j-g00da
j-g00da force-pushed the j-g00da/refactor-backup-filename branch 2 times, most recently from a298f0a to 6ad24a5 Compare August 24, 2026 11:20
@j-g00da j-g00da changed the title refactor: Don't use email address in backup filenames. refactor: Don't include email addresses in export filenames Aug 24, 2026
@j-g00da
j-g00da force-pushed the j-g00da/refactor-backup-filename branch 2 times, most recently from 78983c2 to 26fbf9e Compare August 25, 2026 08:56
@j-g00da

j-g00da commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Do we want to include display name in the filenames? I didn't do so as this may be problematic. If we were to, it would make sense to at least somewhat sanitize these strings (at least removing slashes, backslashes, and all kinds of whitespaces).

I'm not sure if we actually want it though, display name can be changed and this WILL affect ordering, which can be problematic. Since fingerprint is the actual identity, I think it should be accessible from the UI.

cc: @hpk42 @link2xt

@j-g00da
j-g00da marked this pull request as ready for review August 25, 2026 09:09
@j-g00da
j-g00da requested review from hpk42 and link2xt August 25, 2026 09:09
Comment thread src/imex.rs Outdated
@link2xt

link2xt commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Do we want to include display name in the filenames?

It may be useful in case user exports multiple backups, but i think better not do it now, and not in this PR. Most users probably don't do any backups and having multiple devices is sufficient for backing up profiles, have not even seen any user questions about backups recently.

Changes filenames used in the db backups and key exports,
preferring fingerprint over the email address.

Part of: #8572

Signed-off-by: Jagoda 艢l膮zak <jslazak@jslazak.com>
@j-g00da
j-g00da force-pushed the j-g00da/refactor-backup-filename branch from 26fbf9e to a9a5f2b Compare August 26, 2026 08:29
@j-g00da
j-g00da requested a review from link2xt August 26, 2026 08:30

@hpk42 hpk42 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, looks good to me. and yes, we can think about normalizing displaynames and putting them into the filenames separately. Fingerprint is at least more stable than some random email address (that changes over time).

@j-g00da
j-g00da merged commit 4949675 into main Aug 26, 2026
30 checks passed
@j-g00da
j-g00da deleted the j-g00da/refactor-backup-filename branch August 26, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants